﻿<Window x:Class="BlogIndexShow.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="博客索引器"  Height="477" Width="525" 
        WindowStartupLocation="CenterScreen" WindowState="Maximized" 
        Icon="/BlogIndex;component/book.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="24" />
            <RowDefinition Height="40" />
            <RowDefinition Height="*" />
            <RowDefinition Height="200" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Border Grid.Row="0" Background="LightGreen" BorderThickness="1"  BorderBrush="Black" CornerRadius="5" >
            <TextBlock  Margin="5,0,0,0"  Text="博客索引器" FontSize="22"  />
        </Border>

        <Border Grid.Row="1" Background="LightGray" BorderThickness="1"    CornerRadius="4" >
            <Menu  Grid.Row="1"   Height="23" HorizontalAlignment="Left" Name="menu1" VerticalAlignment="Top" >
                <MenuItem Name="menuItemDownload"  Header="下载博客" Click="MenuBackBlog_Click" >
                </MenuItem> 　
                <MenuItem Name="menuItemCreateHtml" Header="生成HTML" Click="MenuCreateHtml_Click" >
                </MenuItem>
            </Menu>
        </Border>

        <Border  Margin="5" Grid.Row="2"  BorderThickness="1" BorderBrush="Black"  >
            <StackPanel Orientation="Horizontal"  Margin="5,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
                <TextBlock Height="24" Width="70" HorizontalAlignment="Left"  
                        Text="博客服务器:" VerticalAlignment="Center" />
                <ComboBox Name="cbBlogServer" Width="120" Height="24" VerticalAlignment="Top"></ComboBox>
                <TextBlock Height="24"   Margin="5,0,0,0" HorizontalAlignment="Left"   Name="textBlock1" Text="作者:" VerticalAlignment="Top" />
                <TextBox  Height="24" HorizontalAlignment="Left" Name="textBoxBlogUser" VerticalAlignment="Top" Width="120"  />
                <TextBlock Height="24"   Margin="5,0,0,0"  HorizontalAlignment="Left"  
                        Text="别名:" VerticalAlignment="Top"  />
                <TextBox Height="24" HorizontalAlignment="Left" Name="textBoxAlias" 
                     VerticalAlignment="Top" Width="120" />

                <Button Name="ButtonConfirm" Height="24" Margin="50,0,0,0"  Width="50" Content="确定" Click="ButtonAddAuthor_Click" />

            </StackPanel>
        </Border>


        <Grid Grid.Row="3" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"></ColumnDefinition>
                <ColumnDefinition Width="auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <TreeView Grid.Column="0"    HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  Margin="5" Name="treeViewAuthor"  />

            <GridSplitter Grid.Column="1"  Panel.ZIndex="1" Background="LightGray"                 Grid.RowSpan="3" 
                HorizontalAlignment="Left" VerticalAlignment="Stretch"                
                ShowsPreview="true" Width="5" Margin="2,5,2,5"/>

            <ListBox Name="listBoxArticle" Grid.Column="2"    HorizontalAlignment="Stretch"  Margin="5" 
                     >
            </ListBox>
        </Grid>

        <RichTextBox Margin="5" Grid.Row="4" FontSize="14" Name="outputWindow"  />

        <StatusBar  Name="statusBar1" Grid.Row="5" Height="23" HorizontalAlignment="Left"   
                   VerticalAlignment="Top">
            <TextBlock   Name="textblockStatus"></TextBlock>
        </StatusBar>
    </Grid>
</Window>
